<%@ Page Language="C#" MasterPageFile="~/NiSis.Master" AutoEventWireup="true" CodeBehind="Report.aspx.cs" Inherits="NiSis.Report" Title="Untitled Page" %>

<%@ Register Src="UserControls/MeseAnnoPicker.ascx" TagName="MeseAnnoPicker" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    
    <asp:Label ID="lblTitle" Text="Report" BackColor="#666666" BorderColor="#E6E2D8" Font-Bold="True" Font-Size="0.9em" ForeColor="White" Width="751px" runat="server" />
    <br />        
    <br />
    <uc1:MeseAnnoPicker ID="MeseAnnoPicker1" runat="server" />
    <asp:ImageButton ID="cmdRefreshGrid" runat="server" ImageUrl="~/Img/refresh.jpg" OnClick="cmdRefreshGrid_Click" />
    <br />
    <asp:CheckBox ID="chkFiltro" runat="server" Text="Filtra volumi inferiore per lo stoccaggio" /><br />
    <data:EntityGridView ID="grdReport" OnRowDataBound="grdReport_RowDataBound" runat="server"  AutoGenerateColumns="False" CellPadding="4"
        ForeColor="#333333" GridLines="None" Visible="False" AllowExportToExcel="True" AllowMultiColumnSorting="False" DefaultSortDirection="Ascending" ExportToExcelText="Excel" PageSelectorPageSizeInterval="10" RecordsCount="0" ShowGridOnEmptyData="False" AllowSorting="True">
        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <RowStyle BackColor="#EFF3FB" />
        <Columns>
            <asp:TemplateField HeaderText="Mese Anno">
                <ItemTemplate>
                    <asp:Label ID="lblMeseAnno" runat="server"></asp:Label>
                
</ItemTemplate>
                <HeaderStyle Wrap="False" />
            </asp:TemplateField>
            <asp:BoundField DataField="DsCliente" HeaderText="Ragione Sociale" HtmlEncode="False" >
                <ItemStyle Wrap="False" />
            </asp:BoundField>
            <asp:BoundField DataField="CdPuntoFornitura" HeaderText="PR" >
                <ItemStyle Wrap="False" />
            </asp:BoundField>
            <asp:BoundField HeaderText="Pool" DataField="CdPool" >
                <ItemStyle Wrap="False" />
            </asp:BoundField>
            <asp:BoundField DataField="DsComune"  HeaderText="Comune" HtmlEncode="False" >
                <ItemStyle Wrap="False" />
            </asp:BoundField>
            <asp:BoundField DataField="DsSocieta" HeaderText="Venditore Uscente" HtmlEncode="False" >
                <ItemStyle Wrap="False" />
            </asp:BoundField>
            <asp:BoundField DataField="ConsumoAnnuoStimato" HeaderText="Volume Annuale" DataFormatString="{0:n}" >
                <ItemStyle Wrap="False" />
            </asp:BoundField>
            <asp:BoundField DataField="Capacita"  HeaderText="Capacit&#224;" DataFormatString="{0:n}" NullDisplayText="-" >
                <ItemStyle Wrap="False" />
            </asp:BoundField>
            <asp:BoundField DataField="CdPrelievoAeeg" HeaderText="Profili" DataFormatString="{0:n}" NullDisplayText="-" >
                <ItemStyle Wrap="False" />
            </asp:BoundField>
            <asp:BoundField DataField="SAreaUscita" HeaderText="Area Uscita" DataFormatString="{0:n}" NullDisplayText="-" >
                <ItemStyle Wrap="False" />
            </asp:BoundField>
            <asp:BoundField DataField="DsTrasportatore" HeaderText="Trasportatore" HtmlEncode="False" DataFormatString="{0:n}" NullDisplayText="-" >
                <ItemStyle Wrap="False" />
            </asp:BoundField>
            <asp:BoundField DataField="LTrader" HeaderText="Ultimo Trader" HtmlEncode="False" >
                <ItemStyle Wrap="False" />
            </asp:BoundField>
            <asp:BoundField DataField="DsShipper" HeaderText="Shipper Identificato" HtmlEncode="False" >
                <ItemStyle Wrap="False" />
            </asp:BoundField>
            <asp:BoundField DataField="DscStato" HeaderText="Stato" >
                <ItemStyle Wrap="False" />
            </asp:BoundField>
        </Columns>
        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <EditRowStyle BackColor="#2461BF" />
        <AlternatingRowStyle BackColor="White" />
        <EmptyDataTemplate>
            Non ci sono dati
        </EmptyDataTemplate>
    </data:EntityGridView>
    <asp:Button ID="CmdCvs" runat="server" OnClick="CmdCvs_Click" Text="Genera file Csv"
        Visible="False" />
   <%-- <asp:RadioButton ID="rbCsv" runat="server" GroupName="rbgExport" Visible="false" Checked="true" OnCheckedChanged="RadioButton1_CheckedChanged"
        Text="Csv" />
    <asp:RadioButton ID="rbExcel" runat="server" GroupName="rbgExport" Visible="false" Text="Excel" />--%>
</asp:Content>
